import 'package:fish_redux/fish_redux.dart';

//TODO replace with your own action
enum PersonListAction { action ,changeTabListAction}

class PersonListActionCreator {
  static Action onAction() {
    return const Action(PersonListAction.action);
  }
  //tabbar contruller
  static Action onChangeTabListAction(params) {
    /*
  params是effect.dart中ctx.dispatch(PersonListActionCreator.onChangeTabListAction({tabList:tabList,'controller':_controller})); 传递来的参数，
  即params就是{tabList:tabList,'controller':_controller}
  action里通过payload接收
  */
    return Action(PersonListAction.changeTabListAction,payload:params);
  }
}
